// DriveNotes. Copyright (c) 2011, Andrei Senchuk. All rights reserved.
package net.taviscaron.drivenotes.shared.model.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * Charging entity object
 * @author Andrei Senchuk
 */
public class Charging implements Serializable {
    private Long id;
    private Car car;
    private Integer odometrValue;
    private Date date;
    private Float volume;
    private Float price;
    private String fillingStation;

    public Charging() {
    }

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getFillingStation() {
        return fillingStation;
    }

    public void setFillingStation(String fillingStation) {
        this.fillingStation = fillingStation;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getOdometrValue() {
        return odometrValue;
    }

    public void setOdometrValue(Integer odometrValue) {
        this.odometrValue = odometrValue;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Float getVolume() {
        return volume;
    }

    public void setVolume(Float volume) {
        this.volume = volume;
    }

    @Override
    public String toString() {
        return String.format("Charging #%d: car: [%s]; odometr: %d; date: %s," +
                " price: %f; volume; %f; filling station: %s", id, car, odometrValue,
                date, price, volume, fillingStation);
    }
}
